package com.jplus.entity;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 用户实体类,目前12个属性
 */
@Data
public class User {

    private Integer id;

    //private String username;

    private String password;

    //private String nickName;

    private String phone;

    // 用户状态，0为失效，1为有效
    private Integer status;

    private Integer admin;

    private Integer loginNum;

    private Date loginTime;

    private Date lastLoginTime;

    private String loginIp;

    private String lastLoginIp;

    private Date createTime;

    private Date updateTime;

    private String authCode;

    private String businessId;

    private Date registerTime;

    private String registerIp;

    //private String umbrellaType;

    // 用户下单之后要及时更新用户订单状态
    private Order order;

    // 加载此用户的所有评论
    private List<Comments> comments;

    private String sessionId;

}

